<template>
    <el-affix position="bottom" :offset="20">
        <el-button type="primary" @click="backToHome">返回主页</el-button>
    </el-affix>
</template>

<script setup>
import {useRouter} from "vue-router";

const router=useRouter()

const backToHome=()=>{
    router.push({name:'index'})
}
</script>

<style scoped>

</style>